﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Osoba"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class OsobaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the Ime property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIme;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Ime property.
		/// </summary>
		protected System.Windows.Forms.Label uxImeLabel;
		
		/// <summary>
		/// TextBox for the Prezime property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPrezime;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Prezime property.
		/// </summary>
		protected System.Windows.Forms.Label uxPrezimeLabel;
		
		/// <summary>
		/// ComboBox for the IDMjestoRodenja property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDMjestoRodenja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDMjestoRodenja property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDMjestoRodenjaLabel;
		
		/// <summary>
		/// TextBox for the MBG property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMBG;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MBG property.
		/// </summary>
		protected System.Windows.Forms.Label uxMBGLabel;
		
		/// <summary>
		/// TextBox for the OIB property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOIB;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OIB property.
		/// </summary>
		protected System.Windows.Forms.Label uxOIBLabel;
		
		/// <summary>
		/// TextBox for the ImeOca property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxImeOca;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ImeOca property.
		/// </summary>
		protected System.Windows.Forms.Label uxImeOcaLabel;
		
		/// <summary>
		/// TextBox for the ImeMajke property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxImeMajke;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ImeMajke property.
		/// </summary>
		protected System.Windows.Forms.Label uxImeMajkeLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumRodenja property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumRodenja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumRodenja property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumRodenjaLabel;
		
		/// <summary>
		/// TextBox for the Napomena property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomenaLabel;
		
		/// <summary>
		/// TextBox for the OsobniOdbitak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOsobniOdbitak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OsobniOdbitak property.
		/// </summary>
		protected System.Windows.Forms.Label uxOsobniOdbitakLabel;
		
		/// <summary>
		/// TextBox for the Spol property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxSpol;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Spol property.
		/// </summary>
		protected System.Windows.Forms.Label uxSpolLabel;
		
		/// <summary>
		/// TextBox for the StrucnaSprema property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxStrucnaSprema;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the StrucnaSprema property.
		/// </summary>
		protected System.Windows.Forms.Label uxStrucnaSpremaLabel;
		
		/// <summary>
		/// TextBox for the Drzavljanstvo property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDrzavljanstvo;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Drzavljanstvo property.
		/// </summary>
		protected System.Windows.Forms.Label uxDrzavljanstvoLabel;
		
		/// <summary>
		/// TextBox for the RadnaDozvolaDaNe property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxRadnaDozvolaDaNe;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the RadnaDozvolaDaNe property.
		/// </summary>
		protected System.Windows.Forms.Label uxRadnaDozvolaDaNeLabel;
		
		/// <summary>
		/// DataTimePicker for the RadnaDozvolaDatumIsteka property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxRadnaDozvolaDatumIsteka;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the RadnaDozvolaDatumIsteka property.
		/// </summary>
		protected System.Windows.Forms.Label uxRadnaDozvolaDatumIstekaLabel;
		
		/// <summary>
		/// TextBox for the Obrazovanje property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxObrazovanje;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Obrazovanje property.
		/// </summary>
		protected System.Windows.Forms.Label uxObrazovanjeLabel;
		
		/// <summary>
		/// TextBox for the StazDoDolaska property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxStazDoDolaska;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the StazDoDolaska property.
		/// </summary>
		protected System.Windows.Forms.Label uxStazDoDolaskaLabel;
		#endregion
		
		#region Main entity
		private Entities.Osoba _Osoba;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Osoba"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Osoba"/> instance.</value>
		public Entities.Osoba Osoba
		{
			get {return this._Osoba;}
			set
			{
				this._Osoba = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIme.DataBindings.Clear();
			this.uxIme.DataBindings.Add("Text", this.uxBindingSource, "Ime", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPrezime.DataBindings.Clear();
			this.uxPrezime.DataBindings.Add("Text", this.uxBindingSource, "Prezime", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDMjestoRodenja.DataBindings.Clear();
			this.uxIDMjestoRodenja.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDMjestoRodenja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMBG.DataBindings.Clear();
			this.uxMBG.DataBindings.Add("Text", this.uxBindingSource, "MBG", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOIB.DataBindings.Clear();
			this.uxOIB.DataBindings.Add("Text", this.uxBindingSource, "OIB", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxImeOca.DataBindings.Clear();
			this.uxImeOca.DataBindings.Add("Text", this.uxBindingSource, "ImeOca", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxImeMajke.DataBindings.Clear();
			this.uxImeMajke.DataBindings.Add("Text", this.uxBindingSource, "ImeMajke", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumRodenja.DataBindings.Clear();
			this.uxDatumRodenja.DataBindings.Add("Value", this.uxBindingSource, "DatumRodenja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena.DataBindings.Clear();
			this.uxNapomena.DataBindings.Add("Text", this.uxBindingSource, "Napomena", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOsobniOdbitak.DataBindings.Clear();
			this.uxOsobniOdbitak.DataBindings.Add("Text", this.uxBindingSource, "OsobniOdbitak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSpol.DataBindings.Clear();
			this.uxSpol.DataBindings.Add("Text", this.uxBindingSource, "Spol", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxStrucnaSprema.DataBindings.Clear();
			this.uxStrucnaSprema.DataBindings.Add("Text", this.uxBindingSource, "StrucnaSprema", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDrzavljanstvo.DataBindings.Clear();
			this.uxDrzavljanstvo.DataBindings.Add("Text", this.uxBindingSource, "Drzavljanstvo", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxRadnaDozvolaDaNe.DataBindings.Clear();
			this.uxRadnaDozvolaDaNe.DataBindings.Add("Text", this.uxBindingSource, "RadnaDozvolaDaNe", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxRadnaDozvolaDatumIsteka.DataBindings.Clear();
			this.uxRadnaDozvolaDatumIsteka.DataBindings.Add("Value", this.uxBindingSource, "RadnaDozvolaDatumIsteka", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxObrazovanje.DataBindings.Clear();
			this.uxObrazovanje.DataBindings.Add("Text", this.uxBindingSource, "Obrazovanje", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxStazDoDolaska.DataBindings.Clear();
			this.uxStazDoDolaska.DataBindings.Add("Text", this.uxBindingSource, "StazDoDolaska", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="OsobaEditControlBase"/> class.
		/// </summary>
		public OsobaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Osoba != null) _Osoba.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIme = new System.Windows.Forms.TextBox();
			uxImeLabel = new System.Windows.Forms.Label();
			this.uxPrezime = new System.Windows.Forms.TextBox();
			uxPrezimeLabel = new System.Windows.Forms.Label();
			this.uxIDMjestoRodenja = new System.Windows.Forms.ComboBox();
			uxIDMjestoRodenjaLabel = new System.Windows.Forms.Label();
			this.uxMBG = new System.Windows.Forms.TextBox();
			uxMBGLabel = new System.Windows.Forms.Label();
			this.uxOIB = new System.Windows.Forms.TextBox();
			uxOIBLabel = new System.Windows.Forms.Label();
			this.uxImeOca = new System.Windows.Forms.TextBox();
			uxImeOcaLabel = new System.Windows.Forms.Label();
			this.uxImeMajke = new System.Windows.Forms.TextBox();
			uxImeMajkeLabel = new System.Windows.Forms.Label();
			this.uxDatumRodenja = new System.Windows.Forms.DateTimePicker();
			uxDatumRodenjaLabel = new System.Windows.Forms.Label();
			this.uxNapomena = new System.Windows.Forms.TextBox();
			uxNapomenaLabel = new System.Windows.Forms.Label();
			this.uxOsobniOdbitak = new System.Windows.Forms.TextBox();
			uxOsobniOdbitakLabel = new System.Windows.Forms.Label();
			this.uxSpol = new System.Windows.Forms.TextBox();
			uxSpolLabel = new System.Windows.Forms.Label();
			this.uxStrucnaSprema = new System.Windows.Forms.TextBox();
			uxStrucnaSpremaLabel = new System.Windows.Forms.Label();
			this.uxDrzavljanstvo = new System.Windows.Forms.TextBox();
			uxDrzavljanstvoLabel = new System.Windows.Forms.Label();
			this.uxRadnaDozvolaDaNe = new System.Windows.Forms.TextBox();
			uxRadnaDozvolaDaNeLabel = new System.Windows.Forms.Label();
			this.uxRadnaDozvolaDatumIsteka = new System.Windows.Forms.DateTimePicker();
			uxRadnaDozvolaDatumIstekaLabel = new System.Windows.Forms.Label();
			this.uxObrazovanje = new System.Windows.Forms.TextBox();
			uxObrazovanjeLabel = new System.Windows.Forms.Label();
			this.uxStazDoDolaska = new System.Windows.Forms.TextBox();
			uxStazDoDolaskaLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxImeLabel
			//
			this.uxImeLabel.Text = "Ime:";
			this.uxImeLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxImeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeLabel);			
			//
			// uxIme
			//
			this.uxIme.Width = 250;
			this.uxIme.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxIme);
			this.uxIme.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIme);
			//
			// uxPrezimeLabel
			//
			this.uxPrezimeLabel.Text = "Prezime:";
			this.uxPrezimeLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxPrezimeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrezimeLabel);			
			//
			// uxPrezime
			//
			this.uxPrezime.Width = 250;
			this.uxPrezime.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPrezime);
			this.uxPrezime.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxPrezime);
			//
			// uxIDMjestoRodenjaLabel
			//
			this.uxIDMjestoRodenjaLabel.Text = "IDMjestoRodenja:";
			this.uxIDMjestoRodenjaLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxIDMjestoRodenjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjestoRodenjaLabel);			
			//
			// uxIDMjestoRodenja
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjestoRodenja);
			this.uxIDMjestoRodenja.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxIDMjestoRodenja);
			//
			// uxMBGLabel
			//
			this.uxMBGLabel.Text = "MBG:";
			this.uxMBGLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxMBGLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMBGLabel);			
			//
			// uxMBG
			//
			this.uxMBG.Width = 250;
			this.uxMBG.MaxLength = 13;
			//this.uxTableLayoutPanel.Controls.Add(this.uxMBG);
			this.uxMBG.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxMBG);
			//
			// uxOIBLabel
			//
			this.uxOIBLabel.Text = "OIB:";
			this.uxOIBLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxOIBLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOIBLabel);			
			//
			// uxOIB
			//
			this.uxOIB.Width = 250;
			this.uxOIB.MaxLength = 11;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOIB);
			this.uxOIB.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxOIB);
			//
			// uxImeOcaLabel
			//
			this.uxImeOcaLabel.Text = "ImeOca:";
			this.uxImeOcaLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxImeOcaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeOcaLabel);			
			//
			// uxImeOca
			//
			this.uxImeOca.Width = 250;
			this.uxImeOca.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeOca);
			this.uxImeOca.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxImeOca);
			//
			// uxImeMajkeLabel
			//
			this.uxImeMajkeLabel.Text = "ImeMajke:";
			this.uxImeMajkeLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxImeMajkeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeMajkeLabel);			
			//
			// uxImeMajke
			//
			this.uxImeMajke.Width = 250;
			this.uxImeMajke.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxImeMajke);
			this.uxImeMajke.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxImeMajke);
			//
			// uxDatumRodenjaLabel
			//
			this.uxDatumRodenjaLabel.Text = "DatumRodenja:";
			this.uxDatumRodenjaLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxDatumRodenjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumRodenjaLabel);			
			//
			// uxDatumRodenja
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumRodenja);
			this.uxDatumRodenja.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxDatumRodenja);
			//
			// uxNapomenaLabel
			//
			this.uxNapomenaLabel.Text = "Napomena:";
			this.uxNapomenaLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxNapomenaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomenaLabel);			
			//
			// uxNapomena
			//
			this.uxNapomena.Width = 250;
			this.uxNapomena.MaxLength = 300;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena);
			this.uxNapomena.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxNapomena);
			//
			// uxOsobniOdbitakLabel
			//
			this.uxOsobniOdbitakLabel.Text = "OsobniOdbitak:";
			this.uxOsobniOdbitakLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxOsobniOdbitakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOsobniOdbitakLabel);			
			//
			// uxOsobniOdbitak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxOsobniOdbitak);
			this.uxOsobniOdbitak.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxOsobniOdbitak);
			//
			// uxSpolLabel
			//
			this.uxSpolLabel.Text = "Spol:";
			this.uxSpolLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxSpolLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSpolLabel);			
			//
			// uxSpol
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxSpol);
			this.uxSpol.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxSpol);
			//
			// uxStrucnaSpremaLabel
			//
			this.uxStrucnaSpremaLabel.Text = "StrucnaSprema:";
			this.uxStrucnaSpremaLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxStrucnaSpremaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxStrucnaSpremaLabel);			
			//
			// uxStrucnaSprema
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxStrucnaSprema);
			this.uxStrucnaSprema.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxStrucnaSprema);
			//
			// uxDrzavljanstvoLabel
			//
			this.uxDrzavljanstvoLabel.Text = "Drzavljanstvo:";
			this.uxDrzavljanstvoLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxDrzavljanstvoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDrzavljanstvoLabel);			
			//
			// uxDrzavljanstvo
			//
			this.uxDrzavljanstvo.Width = 250;
			this.uxDrzavljanstvo.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxDrzavljanstvo);
			this.uxDrzavljanstvo.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxDrzavljanstvo);
			//
			// uxRadnaDozvolaDaNeLabel
			//
			this.uxRadnaDozvolaDaNeLabel.Text = "RadnaDozvolaDaNe:";
			this.uxRadnaDozvolaDaNeLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxRadnaDozvolaDaNeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxRadnaDozvolaDaNeLabel);			
			//
			// uxRadnaDozvolaDaNe
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxRadnaDozvolaDaNe);
			this.uxRadnaDozvolaDaNe.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxRadnaDozvolaDaNe);
			//
			// uxRadnaDozvolaDatumIstekaLabel
			//
			this.uxRadnaDozvolaDatumIstekaLabel.Text = "RadnaDozvolaDatumIsteka:";
			this.uxRadnaDozvolaDatumIstekaLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxRadnaDozvolaDatumIstekaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxRadnaDozvolaDatumIstekaLabel);			
			//
			// uxRadnaDozvolaDatumIsteka
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxRadnaDozvolaDatumIsteka);
			this.uxRadnaDozvolaDatumIsteka.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxRadnaDozvolaDatumIsteka);
			//
			// uxObrazovanjeLabel
			//
			this.uxObrazovanjeLabel.Text = "Obrazovanje:";
			this.uxObrazovanjeLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxObrazovanjeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxObrazovanjeLabel);			
			//
			// uxObrazovanje
			//
			this.uxObrazovanje.Width = 250;
			this.uxObrazovanje.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxObrazovanje);
			this.uxObrazovanje.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxObrazovanje);
			//
			// uxStazDoDolaskaLabel
			//
			this.uxStazDoDolaskaLabel.Text = "StazDoDolaska:";
			this.uxStazDoDolaskaLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxStazDoDolaskaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxStazDoDolaskaLabel);			
			//
			// uxStazDoDolaska
			//
			this.uxStazDoDolaska.Width = 250;
			this.uxStazDoDolaska.MaxLength = 6;
			//this.uxTableLayoutPanel.Controls.Add(this.uxStazDoDolaska);
			this.uxStazDoDolaska.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxStazDoDolaska);
			//
			// uxIDMjestoRodenja
			//				
			this.uxIDMjestoRodenja.DisplayMember = "Naziv";	
			this.uxIDMjestoRodenja.ValueMember = "ID";	
			// 
			// OsobaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "OsobaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Mjesto> _IDMjestoRodenjaList;
		
		/// <summary>
		/// The ComboBox associated with the IDMjestoRodenja property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Mjesto> IDMjestoRodenjaList
		{
			get {return _IDMjestoRodenjaList;}
			set 
			{
				this._IDMjestoRodenjaList = value;
				this.uxIDMjestoRodenja.DataSource = null;
				this.uxIDMjestoRodenja.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDMjestoRodenjaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDMjestoRodenja property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDMjestoRodenjaList
		{
			get { return _allowNewItemInIDMjestoRodenjaList;}
			set
			{
				this._allowNewItemInIDMjestoRodenjaList = value;
				this.uxIDMjestoRodenja.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
